Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Login Flow #79

Merged
merged 3 commits into from
Feb 17, 2021
Merged

Improve Login Flow #79

merged 3 commits into from
Feb 17, 2021

Conversation

XanderRiga
Copy link
Collaborator

This makes the login flow logging a bit more clear and raises a more accurate error to what is actually happening, while passing the response inside it so users can use it to make decisions if they like.

We previously had the help message inside the error we are raising, but
we really want to be logging that as that is where users will be looking
for help. Inside the error we can just dump the entire response. This
might be absurd and too much content, but it at least allows them to
make decisions based on this if they want.
We currently raise a `UserWarning` when we fail auth which isn't very
descriptive and doesn't tell us what actually failed.
This is a more accurate error for what is actually happening and lets us
save the actual response in case the user wants to do something with it.
@XanderRiga XanderRiga requested a review from Esterni February 15, 2021 20:15
@XanderRiga XanderRiga self-assigned this Feb 15, 2021
@Esterni Esterni merged commit 5305895 into master Feb 17, 2021
@Esterni Esterni deleted the xriga/use-custom-auth-error branch February 17, 2021 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants